package com.cnfangmao.masterdata.service;

import java.util.List;

import com.cnfangmao.masterdata.dto.AccountRoleSearchDto;
import com.cnfangmao.masterdata.dto.GeneralSearchDto;
import com.cnfangmao.masterdata.model.AccountRole;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 账号角色关联表 服务类
 * </p>
 *
 * @author chenxd
 * @since 2020-04-17
 */
public interface AccountRoleService extends IService<AccountRole> {

	AccountRole findByUserIdAndRoleId(String userId,String roleId);
	
	IPage<AccountRole> queryListAccountRole(GeneralSearchDto<AccountRoleSearchDto> dto);
	
	List<AccountRole> findListByUserId(String userId);
}
